<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>企业管理系统 - 弹幕内容管理</title>
	<script src="js/jquery.js"></script>
    <link rel="stylesheet" href="css/all.min.css">
    <link rel="stylesheet" href="css/backDanmaku.css">
</head>
<body>
    <!-- 左侧导航栏 -->
    <div class="sidebar">
        <div class="logo">
            <div class="logo-text">后台管理系统</div>
        </div>
        
        <a href="backVideo.html" class="nav-item">
            <i class="fas fa-video"></i>
            <span>视频管理</span>
        </a>
        <a href="#" class="nav-item active">
            <i class="fas fa-comment-dots"></i>
            <span>弹幕管理</span>
        </a>
        <a href="backReview.html" class="nav-item">
            <i class="fas fa-check-circle"></i>
            <span>视频审核</span>
        </a>
        <a href="backComment.html" class="nav-item">
            <i class="fas fa-comments"></i>
            <span>评论管理</span>
        </a>
        <!-- 新增的用户管理模块 -->
        <a href="backUser.html" class="nav-item">
            <i class="fas fa-users"></i>
            <span>用户管理</span>
        </a>
        <a href="backData.html" class="nav-item">
            <i class="fas fa-chart-line"></i>
            <span>数据统计</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-clipboard-list"></i>
            <span>日志管理</span>
        </a>
    </div>
    
    <!-- 主内容区 -->
    <div class="main-content">
        <!-- 顶部工具栏 -->
        <div class="top-bar">
            <div class="search-box">
            </div>
            
            <div class="user-actions">
                <div class="notification">
                    <i class="fas fa-bell"></i>
                </div>
                <div class="user-profile">
                    <div class="user-avatar">AD</div>
                    <div class="username">管理员</div>
                </div>
            </div>
        </div>
        
        <!-- 内容区域 -->
        <div class="content-area">
            <h1 class="section-title"><i class="fas fa-comment-dots"></i> 弹幕管理</h1>
            
            <!-- 弹幕管理模块 -->
            <div class="danmaku-container">
                <div class="toolbar">
                    <div class="filter-bar">
                        
                        <div class="search-box">
                            <i class="fas fa-search"></i>
                            <input type="text" id="searchInput" placeholder="搜索弹幕内容">
                        </div>
                    </div>
                    
                </div>
                
                <table class="danmaku-table">
                    <thead>
                        <tr>
                            <th width="50"></th>
                            <th width="40%">弹幕内容</th>
                            <th width="20%">信息</th>
                            <th width="15%"></th>
                            <th width="15%">操作</th>
                        </tr>
                    </thead>
                    <tbody id="danmakuList">
                        <!-- 弹幕数据将通过JS动态填充 -->
                    </tbody>
                </table>
                
                <div class="pagination">
                    <button class="page-btn"><i class="fas fa-chevron-left"></i></button>
                    <button class="page-btn active"></button>
                    <button class="page-btn"></button>
                    <button class="page-btn"></button>
                    <span class="page-info"></span>
                    <button class="page-btn"><i class="fas fa-chevron-right"></i></button>
                </div>
            </div>
        </div>
    </div>
	<div id="prompt"></div>

    <script src="js/backDanmaku.js"></script>
</body>
<script>
	$.ajax({
		url:"administorInfo",
		type:"post",
		success:function(data){
			$(".user-avatar").css({
				"background-image":"url("+data.data.avatarUrl+")",
				"background-size":"cover"
			}).text("");
			$(".username").text(data.data.nickname)
		}
	})
</script>
</html>